using UnityEngine;

public class LevelGateTrigger : MonoBehaviour
{
	public bool doClose;

	private void Start()
	{
		Object.Destroy(base.gameObject.GetComponent<Renderer>());
	}

	private void OnTriggerEnter(Collider other)
	{
		if (!(other.gameObject != BallBehaviour.GetInstance().gameObject))
		{
			base.gameObject.SendMessageUpwards("OnLevelEndTriggerEnter", SendMessageOptions.DontRequireReceiver);
		}
	}

	private void OnTriggerStay(Collider other)
	{
		if (!(other.gameObject != BallBehaviour.GetInstance().gameObject))
		{
			base.gameObject.SendMessageUpwards("OnLevelEndTriggerStay", SendMessageOptions.DontRequireReceiver);
		}
	}
}
